package com.kantboot.project.auth.user.repository;

import com.kantboot.project.auth.user.entity.CesAuthUserByWechat;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.Repository;
import org.springframework.data.repository.query.Param;

public interface CesAuthUserByWechatRepository extends
        Repository<CesAuthUserByWechat,Long>, CrudRepository<CesAuthUserByWechat,Long> {

    CesAuthUserByWechat findByUnionid(@Param("unionid") String unionid);
    CesAuthUserByWechat findByUserId(@Param("userId") Long userId);

}
